BIN = show-manager-admin.bin
LOCAL_CONFIG_FILE = ./config/config_local.yaml
BUILD_CMD = go build -o $(BIN) ./cmd

# 根据操作系统选择不同的编译命令
ifeq ($(OS),Windows_NT)
	BUILD_CMD = go build -o $(BIN).exe ./cmd
	LOCAL_CONFIG_FILE = .\config\config_local.yaml
endif

build:
	$(BUILD_CMD)

run-local: build
	./$(BIN) -c $(LOCAL_CONFIG_FILE) # 确保可执行文件路径正确

gen:
	go generate ./...
	wire ./...
